package cn.edu.scau.vsac.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 我要求助表（help_request）(HelpRequest)表实体类
 *
 * @author makejava
 * @since 2023-08-05 20:17:17
 */
@Data
@Schema(name = "HelpRequest帮扶请求实体类", description = "帮扶请求实体类")
public class HelpRequest extends Model<HelpRequest> {
    //求助ID，主键，自增
    @TableId(type = IdType.AUTO)
    @Schema(description = "求助ID，主键，自增")
    private Long requestId;
    //地址
    @Schema(description = "地址")
    private String address;
    //求助人ID，外键参考user
    @Schema(description = "求助人ID，外键参考user")
    private Long userId;
    //求助人姓名
    @Schema(description = "求助人姓名")
    private String name;
    //求助内容
    @Schema(description = "求助内容")
    private String content;
    //是否已经接受帮扶 0否 1是
    @Schema(description = "是否已经接受帮扶 0否 1是")
    private Integer isHelped;
    @Schema(description = "创建时间")
    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    //创建时间
    private Date createTime;

}
